page {
  height: 100%;
}

@import '../../../common';

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1110;
}

.subject-container,
.myMap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  background-color: #000;
}

.myMap {
  flex: 1;
  height: 100%;

  .userFuzzyLocation {
    height: 70%;
  }
}

.box {
  width: 100%;
  box-sizing: border-box;
  padding: 0 24rpx;
  background: linear-gradient(0deg, #ebebeb 50%, #0e0e0e00 100%);


  .main {
    position: relative;
    background-color: #ffffff;
    border-radius: 24rpx 24rpx 0 0;

  }
}

.nav-info {
  @include block;
  margin: 0;
  box-sizing: border-box;
  background-color: #fff;
  padding: 0 0 24rpx 0;

  .info {
    background: #FCFCFC;
    box-sizing: border-box;
    padding: 20rpx 24rpx;
    height: 160rpx;
    @include flex-space-around;

    .detail {
      width: calc(100% - 56rpx - 24rpx - 24rpx);
    }

    .nav-btn {
      width: 56rpx;
      height: 56rpx;
      margin-right: 24rpx;
      background-color: var(--color-theme);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;

      image {
        display: block;
        width: 24rpx;
        height: 24rpx;
      }
    }

    .line {
      width: 2rpx;
      height: 40rpx;
      background: #EEEEEE;
      margin: 6rpx 0 6rpx 8rpx;
    }

    .start,
    .end {
      @include flex;
      @include fontStyle(32, 32, #000000);
      width: 100%;
    }

    .start text.start_1,
    .end text.end_1 {
      display: block;
      width: 16rpx;
      height: 16rpx;
      background: #4FBE99;
      border-radius: 50%;
      margin-right: 16rpx;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .end text.end_1 {
      background-color: #fe5953;
    }

    .start text.start_2,
    .end text.end_2 {
      width: calc(100% - 32rpx);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: #000000;
    }
  }

  .addr {
    @include flex;
    margin-top: 24rpx;

    image {
      @include size(28, 28);
      margin-right: 4rpx;
    }

    text {
      @include fontStyle(28, 28, #666666, 400);
    }
  }

  .traffic-type {
    @include flex-space-around;
    margin-top: 40rpx;

    .vehicle {
      width: 40%;
      height: 80rpx;
      border-radius: 40rpx;
      background-color: #F6F6F6;
      @include fontStyle(28, 28, #666666, 400);
      @include flex-center;

      image {
        @include size(28, 28);
        margin-right: 4rpx;
      }

      &.active {
        background-color: var(--color-theme);
        color: #ffffff;
      }
    }
  }
}

.traffic {
  width: 100%;
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom);

  .item {
    @include block;
    @include flex;
    margin: 0;
    border: 1px solid transparent;
    background-color: transparent;
    border-radius: 0;

    &:not(:last-child) {
      border-bottom: 1px solid #eee;
    }



    &.active {
      background-color: #F8F9FF;
      border-radius: 24rpx;
    }




    .left {
      width: calc(100% - 100rpx);
    }

    .right {
      width: 100rpx;
      @include flex-center;
    }

    .or {
      @include fontStyle(24, 24, #000000);
      padding: 16rpx 0;
      margin-left: 24rpx;
    }

    .line-path {
      @include flex;
      flex-wrap: wrap;
    }

    .line {
      // background-color: #F6F6F6;
      @include fontStyle(32, 32, #000000);
      // padding:  8rpx  24rpx;
      margin-right: 32rpx;
      margin-bottom: 24rpx;
      border-radius: 24rpx;
      display: flex;
      position: relative;

      image {
        @include size(28, 28);
        margin-right: 8rpx;
      }

      &.triangle {
        &::after {
          content: '';
          display: block;
          width: 0;
          height: 0;
          border-top: 10rpx solid transparent;
          border-bottom: 10rpx solid transparent;
          border-left: 14rpx solid #D8D8D8;
          position: absolute;
          top: 50%;
          right: -24rpx;
          transform: translate(0, -50%);
        }

      }
    }

    .time {
      @include fontStyle(28, 28, #666666);
      margin-top: 4rpx;

      .time-line {
        display: flex;

        text {
          &.n {
            margin-right: 16rpx;
          }
        }
      }
    }

    .geton {
      @include fontStyle(28, 28, #000000);
      margin-top: 32rpx;

      .point {
        display: inline-block;
        width: auto;
        @include flex;

        text {
          &.on {
            height: 44rpx;
            padding: 0 16rpx;
            background: #999999;
            border-radius: 8rpx 0 0 8rpx;
            @include flex-center;
            color: #fff;
          }

          &.station {
            height: 44rpx;
            padding: 0 16rpx;
            border: 1px solid #999;
            @include flex-center;
            box-sizing: border-box;
            border-radius: 0 8rpx 8rpx 0;
          }
        }
      }
    }
  }
}


.sheet {
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.scrollable {
  height: 100%;
  background-color: #fff;
  border-radius: 12rpx 12rpx 0 0;
  box-sizing: border-box;
  padding: 24rpx;
}